.playback-page {
  padding: 20px;
  margin-top: 56px; /* 避免被导航栏遮挡 */
  text-align: center;
  background-color: #f0f2f5; /* 浅背景色 */
  min-height: calc(100vh - 56px); /* 确保页面至少占满视口高度 */
  color: #333; /* 默认文字颜色 */
  font-family: 'Arial', sans-serif; /* 更改字体 */
}

.playback-page h1 {
  margin-bottom: 30px;
  font-size: 24px;
}

.video-container {
  width: 80%; /* 调整视频容器宽度 */
  max-width: 800px; /* 最大宽度 */
  margin: 0 auto 30px auto; /* 居中显示，增加下方边距 */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* 添加阴影 */
  border-radius: 8px;
  overflow: hidden; /* 确保圆角生效 */
}

video {
  display: block; /* 移除底部空白 */
}

/* 新增：导演信息样式 */
.director-info {
  display: flex;
  align-items: center;
  width: 80%;
  max-width: 800px;
  margin: 20px auto; /* 居中显示，调整边距 */
  padding: 15px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.director-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%; /* 圆形头像 */
  overflow: hidden;
  margin-right: 20px;
  flex-shrink: 0; /* 防止头像被压缩 */
}

.director-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.director-details {
  flex-grow: 1;
  text-align: left;
}

.director-details h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  color: #007bff;
}

.director-details p {
  margin: 0;
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}


.related-images {
  margin-top: 30px;
  text-align: left;
  padding: 0 10%; /* 与视频容器对齐 */
}

.related-images h2 {
  margin-bottom: 15px;
  font-size: 18px;
  color: #555;
}

.image-list {
  display: flex;
  overflow-x: auto; /* 允许水平滚动 */
  gap: 15px; /* 图片之间的间距 */
  padding-bottom: 10px; /* 避免滚动条遮挡 */
}

.related-image-item {
  width: 120px; /* 图片宽度 */
  height: 180px; /* 图片高度 */
  object-fit: cover; /* 保持图片比例 */
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  flex-shrink: 0; /* 防止图片被压缩 */
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
  .playback-page {
    padding: 15px;
  }

  .playback-page h1 {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .video-container {
    width: 100%;
    margin-bottom: 20px;
  }

  .director-info {
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 10px;
    margin: 15px auto;
  }

  .director-avatar {
    width: 60px;
    height: 60px;
    margin-right: 0;
    margin-bottom: 10px;
  }

  .director-details {
    text-align: center;
  }

  .director-details h3 {
    font-size: 16px;
    margin-bottom: 5px;
  }

  .director-details p {
    font-size: 12px;
  }

  .related-images {
    padding: 0 15px;
  }

  .related-images h2 {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .image-list {
    gap: 10px;
  }

  .related-image-item {
    width: 100px;
    height: 150px;
  }
}